package community

import (
	"crmeb-common/global"
	"time"
)

// CommunityNotes 社区笔记表
type CommunityNotes struct {
	global.BaseModel
	Title string `json:"title" gorm:"column=title;comment:标题"`

	Type int32 `json:"type" gorm:"column=type;comment:笔记类型：1-图文，2-视频"`

	Cover string `json:"cover" gorm:"column=cover;comment:封面"`

	Image string `json:"image" gorm:"column=image;comment:图片"`

	Video string `json:"video" gorm:"column=video;comment:视频链接"`

	Content string `json:"content" gorm:"column=content;comment:笔记正文"`

	CategoryId int32 `json:"categoryId" gorm:"column=category_id;comment:社区分类ID"`

	TopicIds string `json:"topicIds" gorm:"column=topic_ids;comment:话题ID,英文逗号拼接"`

	Uid int32 `json:"uid" gorm:"column=uid;comment:用户ID"`

	Star int32 `json:"star" gorm:"column=star;comment:星级排序:1-5"`

	AuditStatus int32 `json:"auditStatus" gorm:"column=audit_status;comment:审核状态:0-待审核，1-审核通过，2-审核失败，3-平台关闭"`

	Refusal string `json:"refusal" gorm:"column=refusal;comment:拒绝理由"`

	LikeNum int32 `json:"likeNum" gorm:"column=like_num;comment:点赞数"`

	ReplyNum int32 `json:"replyNum" gorm:"column=reply_num;comment:评论数"`

	ShareNum int32 `json:"shareNum" gorm:"column=share_num;comment:分享数"`

	Views int32 `json:"views" gorm:"column=views;comment:浏览量"`

	Sort int32 `json:"sort" gorm:"column=sort;comment:排序"`

	ReplyStatus int32 `json:"replyStatus" gorm:"column=reply_status;comment:是否开启评论，1-开启，2-关闭，3-平台关闭"`

	OperateTime time.Time `json:"operateTime" gorm:"column=operate_time;comment:操作时间"`
}
